using System;
using System.Collections.Generic;
using System.Text;

namespace NDomain.ExampleModels.BloggingSystem.Infrastructure
{
    public class BlogFactoryImpl : IBlogFactory
    {
        private IBlogRepository _blogRepository;

        #region IBlogFactory Members

        public BlogFactoryImpl(IBlogRepository blogRepository)
        {
            _blogRepository = blogRepository;
        }

        public Blog CreateBlog(string name)
        {
            return new Blog(name, _blogRepository);
        }

        #endregion
    }
}
